{include file="public/_meta" title="娱乐资讯"/}

<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 资讯管理 <span class="c-gray en">&gt;</span> 资讯列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c">
        <form action="" method="get">
           <span class="select-box inline">
            <select name="catid" class="select">
                <option value="0">栏目分类</option>
                {volist name="cat" id="vo"}
                <option value="{$key}" {if condition="$key eq $catid"}
                        selected="selected"{/if}>{$vo}</option>
                {/volist}
                </select>
            </span>
           <span class="select-box inline">
                <select name="catid" class="select">
                    <option value="0">区域分类</option>
                    {volist name="address" id="vo"}
                  <option value="{$key}" {if condition="$key eq $adds"}
                          selected="selected"{/if}>{$vo}</option>
                  {/volist}
                </select>
            </span>
            日期范围：
            <input type="text" name="start_time" class="input-text" id="countTimestart" onfocus="selecttime(1)" value="{$start_time}" style="width:120px;" >
            -
            <input type="text" name="end_time" class="input-text" id="countTimestart" onfocus="selecttime(1)" value="{$end_time}"  style="width:120px;">

            <input type="text" name="title" placeholder=" 娱乐名称" value="{$title}" style="width:250px" class="input-text">
            <button class="btn btn-success" type="submit">
                <i class="Hui-iconfont">&#xe665;</i> 搜娱乐
            </button>
        </form>
    </div>

    <div class="mt-20">
        <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive" >
            <thead>
            <tr class="text-c">
                <th width="25"><input type="checkbox" name="" value=""></th>
                <th width="40">序号</th>
                <th>编码</th>
                <th width="80">分类</th>
                <th width="80">区域</th>
                <th width="80">封面图片</th>
                <th width="120">更新时间</th>
                <th width="60">是否认证</th>
                <th width="60">是否推荐</th>
                <th width="60">发布状态</th>
                <th width="80">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="product" id="vo"}
            <tr class="text-c">
                <td><input type="checkbox" value="" name=""></td>
                <td>{$vo.id}</td>
                <td class="text-l">
                    <u style="cursor:pointer" class="text-primary"  title="查看">
                        {$vo.title}
                    </u>
                </td>
                <td>{$vo.catid|getCatName}</td>
                <td>{$vo.address|getAddressName}</td>
                <td>
                    <img width="60" height="60" class="picture-thumb" src="{$vo.img}">
                </td>
                <td>{$vo.update_time}</td>
                <td>{$vo.is_approve|approve=$vo.id, ###}</td>
                <td class="td-status">{$vo.is_position|isYesNo}</td>
                <td class="td-status">{$vo.status|status=$vo.id, ###}</td>
                <td class="f-14 td-manage">

                    <a style="text-decoration:none" class="ml-5" onClick="app_del(this)" href="javascript:;" title="删除" del_url="{:url('product/delete',['id' =>$vo.id])}">
                        <i class="Hui-iconfont">&#xe6e2;</i>
                    </a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        <br/>
        <div id="laypage"></div>
    </div>

</div>
<!--header-->
{include file="public/_footer" /}

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__STATIC__/hadmin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__STATIC__/hadmin/lib/laypage/1.2/laypage.js"></script>

{load href="__STATIC__/admin/js/common.js" /}

<script type="text/javascript">
    var url = '{:url("product/index")}'+'?{$query}';
    //alert(url);
    laypage({
        cont: 'laypage', //容器。值支持id名、原生dom对象，jquery对象,
        pages: '{$pageTotal}', //总页数
        skin: '#5FB878', //皮肤
        curr :'{$curr}',
        jump: function(e, first){ //触发分页后的回调
            if(!first){ //一定要加此判断，否则初始时会无限刷新
                //alert(url+'?page='+e.curr);
                location.href = url+'&page='+e.curr;
            }
        }
    });

</script>
<style>
    .imooc-app .pagination li{display:inline; padding-left:10px;}
    .pagination .active{color:red}
    .pagination .disabled{color:#888888}
</style>
</body>
</html>